﻿
namespace Cos.Module.CMS.NHibernate.Test
{
    using System;

    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class ContentLogDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapContentLogDataModel()
        {
            new PersistenceSpecification<ContentLogDataModel>(Session)
                .CheckProperty(x => x.CultureCode, "En-CA")
                .CheckProperty(x => x.LogTime, new DateTime(2000, 01, 01))
                .CheckProperty(x => x.NavID, 0)
                .CheckProperty(x => x.ContentLogType, "F-U")
                .CheckProperty(x => x.UserID, 1)
                .CheckProperty(x => x.UserName, "gkhawaja")
                .VerifyTheMappings();
        }
    }
}
